//
//  SNKChatViewController.m
//  SleepNews
//
//  Created by Kavee DJ on 2016/12/27.
//  Copyright © 2016年 Kavee DJ. All rights reserved.
//

#import "SNKChatViewController.h"
#import <UIScrollView+EmptyDataSet.h>

@interface SNKChatViewController ()<DZNEmptyDataSetSource, DZNEmptyDataSetDelegate>

@end

@implementation SNKChatViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.tableView.emptyDataSetSource = self;
    self.tableView.emptyDataSetDelegate = self;
    
    // A little trick for removing the cell separators
    self.tableView.tableFooterView = [UIView new];
}
    
- (UIImage *)imageForEmptyDataSet:(UIScrollView *)scrollView
{
        return [UIImage imageNamed:@"xiaoying018"];
}
    
- (NSAttributedString *)titleForEmptyDataSet:(UIScrollView *)scrollView
{
    NSString *text = @"Coming soon";
    
    NSDictionary *attributes = @{NSFontAttributeName: [UIFont boldSystemFontOfSize:18.0f],
                                 NSForegroundColorAttributeName: [UIColor darkGrayColor]};
    
    return [[NSAttributedString alloc] initWithString:text attributes:attributes];
}


@end
